package client;

import java.io.IOException;
import java.net.Socket;

import util.Command;

public class TaskClient extends Thread {
	
	private Socket socket;	
	private Command command;
	
	public TaskClient(Socket sck) throws IOException{
		socket = sck;
	}
	
	public void setPut(String pathFile) throws IOException{
		command = new client.command.Put(socket,pathFile);		
	}
	
	public void setGet(String file) throws IOException{
		command = new client.command.Get(socket,file);		
	}
	@Override
	public void run() {
		command.execute();		
	}
}